package pl.ericpol.kernel.logic;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import pl.ericpol.kernel.schemas.Schema;

public class SchemaExecute implements Runnable {

	private static Logger logger = LogManager.getLogger(SchemaExecute.class);
	
	private Schema schema;
	
	public SchemaExecute(Schema schema) {
		this.schema = schema;
	}
	
	@Override
	public void run() {
		schema.execute();
		logger.info("Schema with name: "+schema.getName()+" begin to execute");
	}

}
